package Compile.CIFA;

/*
* 词法分析器生成的一个单词
* <值,类型>
* */
public class Token {
    private TokenType type;
    private String value;

    public Token(String value, TokenType type) {
        this.type = type;
        this.value = value;
    }

    public TokenType getType() {
        return type;
    }

    public String getValue() {
        return value;
    }

    @Override
    public String toString() {
        return "<" + value + ", " + type + ">";
    }
}
